#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	char a[]={"I hate"};
	char b[]={"I love"};
	char c[]={" that "};
	int n;
	scanf("%d",&n);
	if(n==1) printf("%s it\n",a);
	else
	{
		for(int i = 1;i<=n;i++)
		{
			if(i%2) printf("%s",a);
			else
			{
				printf("%s",b);
			}
			if(i!=n) printf("%s",c);
		}
		printf(" it\n");
	}
}
